package cn.edu.cug.cs.gtl.plugins.redner4oi.canvas;
import cn.edu.cug.cs.gtl.plugins.redner4oi.nodes.SceneExaminerImpl;
import cn.edu.cug.cs.gtl.apis.render.nodes.SceneExaminer;
import com.openinventor.inventor.viewercomponents.awt.glcanvas.renderareas.RenderAreaExaminer;
public class RenderAreaExaminerImpl extends RenderAreaInteractiveImpl implements cn.edu.cug.cs.gtl.apis.render.canvas.RenderAreaExaminer {
    public RenderAreaExaminerImpl() {
        super();
        this.nativeObject = new RenderAreaExaminer();
    }

    public RenderAreaExaminerImpl(RenderAreaExaminer s) {
        super();
        this.nativeObject = s;
    }
    @Override
    public boolean attach(Object nativeObject) {
        if(nativeObject instanceof RenderAreaExaminer)
            this.nativeObject = (RenderAreaExaminer)nativeObject;
        else
            return false;
        return true;
    }

    @Override
    public SceneExaminer getSceneInteractor() {
        return new SceneExaminerImpl(((RenderAreaExaminer)this.nativeObject).getSceneInteractor());
    }

    @Override
    public void invalidate() {
        ((RenderAreaExaminer)this.nativeObject).invalidate();
    }

}
